class Time
{
  public int y, m, d;
  public int hours, minutes, seconds;
  
  public Time(String t)
  {
    String[] dateAndTime = splitTokens(t, " ");
    String[] date = splitTokens(dateAndTime[0], "-");
    String[] time = splitTokens(dateAndTime[1], ":");
    
    y = Integer.parseInt(date[0]);
    m = Integer.parseInt(date[1]);
    d = Integer.parseInt(date[2]);
    
    hours = Integer.parseInt(time[0]);
    minutes = Integer.parseInt(time[1]);
    seconds = Integer.parseInt(time[2]);
    
  }
  
  public String toString()
  {
    return "Upload time: " + y + "-" + m + "-" + d + " " + hours + ":" + minutes + ":" + seconds;
  }
}
